package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;

/**
 * ETH余额表
 */
@Data
@TableName(value = "tb_balance", autoResultMap = true) // autoResultMap 自动处理实体与表字段的映射
public class Balance {
    public String getWalletAddress() {
        return walletAddress;
    }
    public void setWalletAddress(String walletAddress) {
        this.walletAddress = walletAddress;
    }
    public BigDecimal getEthBalance() {
        return ethBalance;
    }
    public void setEthBalance(BigDecimal ethBalance) {
        this.ethBalance = ethBalance;
    }
    public Date getUpdateTime() {
        return updateTime;
    }
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @TableId(type = IdType.AUTO)
    private Long id;

    /** 钱包地址 */
    private String walletAddress;

    /** ETH余额 */
    private BigDecimal ethBalance;

    /** 更新时间 */
    private Date updateTime;

}
